#!/usr/bin/env python

import component

from autorm.fields import *

class Device(component.Model):
    '''Device class
    
    @author Julot <andy.julot@gmail.com>
    @since Thursday, March 15, 2012. 09:37 AM'''
    
    class Meta:
        '''Meta Class for Post'''
        
        table = 'hosts'
        pk = 'id'
        fields = [IdField('id'),
                  IntegerField('host', index=True),
                  IntegerField('channel', index=True),
                  IntegerField('value')]
    